package demo4;

public class java004 {
	public static void main(String[] args) {
		Desk desk=new Desk();
		Cooker cooker=new Cooker(desk);
		Foodie foodie=new Foodie(desk);
		cooker.start();
		foodie.start();
		try {
			cooker.join();
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		
	}
}
